#define _CRT_SECURE_NO_WARNINGS 1
int GetNumberOfK(int* nums, int numsLen, int k)
{
    // write code here
    int count = 0;
    for (int i = 0; i < numsLen; i++)
    {
        if (nums[i] == k)
            count++;
    }
    return count;

}


int convertInteger(int A, int B)
{

    int count = 0;
    for (int i = 0; i < 32; i++)
    {
        int a = (A >> i) & 1;
        int b = (B >> i) & 1;
        if (a != b)
        {
            count++;
        }
    }
    return count;

}